package oopday01;

public class Student {
    int age;
    String name;
    String className;
    String stuId;
    Student(){

    }
    Student(int age,String name){
        this.age=age;
        this.name=name;
    }
    Student(int age,String name,String className,String stuId){
        this.age=age;
        this.name=name;
        this.stuId=stuId;
        this.className=className;
    }
    void say(){
        System.out.println("你好");
    }
    void sayHi(){
        System.out.println("我叫"+name+",今年"+age+"岁了,所在班级为:"+className+",学号为："+stuId);
    }
    void playWith(String anotherName){
        System.out.println(name+"正在和"+anotherName+"玩");
    }
}
